SVN_VER=1.6.12
SVN_URL=http://subversion.tigris.org/downloads
SVN_SRC_GZ=subversion-$SVN_VER.tar.gz
SVN_SRC_DEPS_GZ=subversion-deps-$SVN_VER.tar.gz
SVN_PATH=subversion-$SVN_VER

if [ ! -f $SVN_SRC_GZ ]; then
	wget $SVN_URL/$SVN_SRC_GZ
fi

if [ ! -f $SVN_SRC_DEPS_GZ ]; then
	wget $SVN_URL/$SVN_SRC_DEPS_GZ
fi

rm -rf $SVN_PATH

tar zxvf $SVN_SRC_GZ
tar zxvf $SVN_SRC_DEPS_GZ

pushd $SVN_PATH

yum -y intall gcc
yum -y intall openssl-devel

./configure --with-ssl
make
make install

popd
